package com.java.tutorials.spring.springInAction4th.chapter02.javaconfig;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class CDPlayer2Config {

    @Bean
    public CompactDisc2 compactDisc() {
        return new SgtPeppers2();
    }

    @Bean
    public CDPlayer2 cdPlayer(CompactDisc2 compactDisc) {
        return new CDPlayer2(compactDisc);
    }

}
